package com.example.oauth2.base.service.impl;

import com.example.oauth2.base.domain.SsoUser;
import com.example.oauth2.base.repository.SsoUserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SsoUserService {
    @Autowired
    private SsoUserRepository ssoUserRepository;

    public SsoUser findByUsername(String username){
        SsoUser ssoUser = ssoUserRepository.findByUsername(username);
        return ssoUser;
    }
}
